#include <stdio.h>
#include <time.h>

int AddToVal(int from, int to)
{
    int sum = 0;
    for(int i = from; i < to; ++i)
    {
        sum += i;
    }
    return sum;
}

void Print(int sum)
{
    long long timestamp = time(NULL);
    printf("result = %d, timepstamp: %lld\n", sum, timestamp);
}

int main()
{
    int sum = AddToVal(0, 100);
    printf("hello worlda\n");
    printf("hello worldb\n");
    printf("hello worldc\n");
    printf("hello worldd\n");
    printf("hello worlde\n");
    printf("hello worldf\n");
    Print(sum);
    return 0;
}
